package com.hefu.virtuallife.bean;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Id;
import org.greenrobot.greendao.annotation.Generated;

/**
 * Created by pc on 2018/7/24.
 *
 * 每个家居应该有一个自己的ID，这里用的自增。后续需要改为赋值
 * 不同场景应该可以使用相同的家电，现在未做区分
 */

@Entity
public class SmartHomeBean {
    @Id(autoincrement = true)
    private Long id;

    private String name;
    private boolean state;
    private int type;
    private String roomType;
    private String scene;
    @Generated(hash = 1274119790)
    public SmartHomeBean(Long id, String name, boolean state, int type,
            String roomType, String scene) {
        this.id = id;
        this.name = name;

        this.state = state;
        this.type = type;
        this.roomType = roomType;
        this.scene = scene;
    }
    @Generated(hash = 230349634)
    public SmartHomeBean() {
    }
    public Long getId() {
        return this.id;
    }
    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return this.name;
    }
    public void setName(String name) {
        this.name = name;
    }

    public boolean getState() {
        return this.state;
    }
    public void setState(boolean state) {
        this.state = state;
    }
    public int getType() {
        return this.type;
    }
    public void setType(int type) {
        this.type = type;
    }

    public String getRoomType() {
        return this.roomType;
    }
    public void setRoomType(String roomType) {

        this.roomType = roomType;
    }
    public String getScene() {
        return this.scene;
    }
    public void setScene(String scene) {
        this.scene = scene;
    }
}
